<?php
if(!defined('SABLOG_ROOT')) {
	exit('Access Denied');
}

if ($link_count) {
	$query = $DB->query("SELECT displayorder,name,url,note FROM {$db_prefix}links WHERE visible = '1' ORDER BY displayorder ASC, name ASC");
	$linkdb = array();
	while ($link = $DB->fetch_array($query)) {
		$link['note'] = $link['note'] ? $link['note'] : $link['url'];
		$linkdb[] = $link;
	}
	unset($link);
	$DB->free_result($query);
}
$pagefile = 'links';
$options['title'] = settitle('友情链接');

?>